xen/arm: p2m: Reduce the locking section in get_page_from_gva
authorJulien Grall <julien.grall@arm.com>
Mon, 16 Jul 2018 17:27:01 +0000 (18:27 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 22 Aug 2018 15:32:02 +0000 (16:32 +0100)
commit0f11f3e7abf6465a8da8790af3f00518a74890fc
tree9b9b7d5e6109d23872c148e5f064cf9aa7eae1e4
parent6a3c105a4a552b28580bcf435e860dbdd6d7171d
xen/arm: p2m: Reduce the locking section in get_page_from_gva

The p2m lock is only necessary to prevent gvirt_to_maddr failing when
break-before-make sequence is used in the P2M update concurrently on
another pCPU. So reduce the locking section.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c